package cn.fxl.org.domain;

import cn.fxl.basic.domain.BasicDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data//前提pom配置lombok可以不写setter和getter
public class Department extends BasicDomain {
  private String sn;
  private String name;
  private String dirPath;
  private Integer state;
  //部门领导id
  private Long manager_id;
  private Employee manager;
  //上级部门id
  private Long parent_id;
  private Department parent;
  @JsonInclude(JsonInclude.Include.NON_EMPTY)
  private List<Department> children=new ArrayList<>();
}
